/**
 * @projectName yygh_parent
 * @package com.atguigu.yygh.hosp.repository
 * @className com.atguigu.yygh.hosp.repository.ScheduleRepository
 */
package com.atguigu.yygh.hosp.repository;

import com.atguigu.yygh.model.hosp.Schedule;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * ScheduleRepository
 * @description
 * @author zyw
 * @date 2023/5/25 12:57
 * @version 1.0
 */
@Repository
public interface ScheduleRepository extends MongoRepository<Schedule, String> {
    Schedule getScheduleByHoscodeAndDepcodeAndHosScheduleId(String hoscode, String depcode, String hosScheduleId);


    Schedule getScheduleByHoscodeAndHosScheduleId(String hoscode, String hosScheduleId);

    List<Schedule> findByHoscodeAndDepcodeAndWorkDate(String hoscode, String depcode, Date date);

    Schedule findByHosScheduleId(String scheduleId);
}
